package com.manage.demo.service;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.manage.demo.dao.ExamResultMapper;
import com.manage.demo.dao.model.ExamResults;
@Service
@Transactional
public class ExamResultsService {
	@Autowired
	private ExamResultMapper ExamResultMapper;
	
	@Transactional
	public List<String> getYear() {
		return ExamResultMapper.getYear();
	}
	
	@Transactional
	public List<String> getSubject() {
		return ExamResultMapper.getSubject();
	}
	
	@Transactional
	public List<ExamResults> getResults(String year, String examtype) {
		return ExamResultMapper.getResults(year, examtype);
	}
}
